<?php 
include("../conn.php");

if(!isset($_POST['ids'])){
	echo json_encode(array('code'=>-100,'msg'=>'发票信息错误'));
	exit;
}

 $ids = $_POST['ids'];

 $sql = 'update user_invoice set `is_delete` = 1 where `id` in('.$ids.')';

 $query = mysql_query($sql);
 if($query){
 	echo json_encode(array('code'=>200,'msg'=>'删除成功'));
 }else{

 	echo json_encode(array('code'=>100,'msg'=>'删除失败'));
 }














?>